package com.youkeyi.ddy.cloud.common.api.application.system.position;

import com.youkeyi.ddy.cloud.common.api.application.system.organization.dto.SystemOrganizationDetailCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.organization.dto.SystemOrganizationListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.organization.param.SystemOrganizationCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.organization.param.SystemOrganizationDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.organization.param.SystemOrganizationListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.organization.param.SystemOrganizationUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.position.dto.SystemPositionDetailCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.position.dto.SystemPositionListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.position.param.SystemPositionCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.position.param.SystemPositionDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.position.param.SystemPositionListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.position.param.SystemPositionUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemPositionCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/position/fallback")
public class SystemPositionCloudServiceFallback implements SystemPositionCloudService {

    @Override
    public SystemPositionListCloudDto list(SystemPositionListCloudParam param) {
        return new SystemPositionListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemPositionListCloudDto simpleList(SystemPositionListCloudParam param) {
        return new SystemPositionListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemPositionDetailCloudDto detail(String positionPrimaryKey) {
        return new SystemPositionDetailCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(SystemPositionCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(SystemPositionUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemPositionDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
